﻿@{
    ViewBag.Title = "Transfer";
}
@using IBS.Model
@model  Transfer 
<h2>
    Transfer</h2>
@if (!ViewData.ModelState.IsValid)
{
    <div>
        @Html.ValidationSummary(false)
    </div>
}
else
{
    <div>
        Transfered</div>
    <table>
        <tr>
            <td>Bill Number:</td>
            <td>@Model.Id</td>
        </tr>
        <tr>
            <td>Card Number:</td>
            <td>@Model.FromCard.Number</td>
        </tr>
        <tr>
            <td>Amount:</td>
            <td>@Model.FromAccountAmount.ToString("0.####")
            </td>
        </tr>
        <tr>
            <td>Currency:</td>
            <td>@Model.FromCard.Account.Currency.ISO</td>
        </tr>
        <tr>
            <td>To Card Number:</td>
            <td>@Model.ToCard.Number</td>
        </tr>
        <tr>
            <td>Amount:</td>
            <td>@Model.ToAccountAmount.ToString("0.####")
            </td>
        </tr>
        <tr>
            <td>Currency:</td>
            <td>@Model.ToCard.Account.Currency.ISO
            </td>
        </tr>
        <tr>
            <td>
                 @Html.ActionLink("Get Bill", "GetBill", "Bill", new { transferId = Model.Id }, null)
            </td>
            <td>
                 @Html.ActionLink("Home", "Index", "Home")
            </td>
        </tr>
    </table>
   
}
